/*
 * @Author: liuYang codkly@gmail.com
 * @Date: 2022-12-05 17:31:01
 * @LastEditors: liuYang codkly@gmail.com
 * @LastEditTime: 2022-12-08 11:13:17
 * @FilePath: \coding\nest\blog_alpha\src\main.ts
 * @Description: 
 * 暂无备注
 */
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import { HttpExceptionFilter } from './core/filter/http-exception/http-exception.filter';

async function bootstrap() {
  const app = await NestFactory.create(AppModule);

  app.useGlobalFilters(new HttpExceptionFilter());
  app.setGlobalPrefix('api');  //增加全局前缀
  await app.listen(3000);
}
bootstrap();
